From: Florian Müllner Date: Mon, 19 Aug 2019 19:13:01 +0000 (+0200) Subject: network: Don't omit parens when constructing X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~811^2^2~118 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=a3267be192e6b47131a5c08376ad13d3356d9109;p=gnome-shell.git network: Don't omit parens when constructing While it is legal to omit parentheses when invoking a constructor with no arguments, we generally avoid that in our coding style. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/710 --- diff --git a/js/ui/status/network.js b/js/ui/status/network.js index 7cff22c6e..4bb012d88 100644 --- a/js/ui/status/network.js +++ b/js/ui/status/network.js @@ -874,7 +874,7 @@ class NMWirelessDialog extends ModalDialog.ModalDialog { this._airplaneHeadline = new St.Label({ style_class: 'nm-dialog-airplane-headline headline' }); this._airplaneText = new St.Label({ style_class: 'nm-dialog-airplane-text' }); - let airplaneSubStack = new St.Widget({ layout_manager: new Clutter.BinLayout }); + let airplaneSubStack = new St.Widget({ layout_manager: new Clutter.BinLayout() }); this._airplaneButton = new St.Button({ style_class: 'modal-dialog-button button' }); this._airplaneButton.connect('clicked', () => { if (this._rfkill.airplaneMode)